<?php

namespace App\Transformers;


class UserTransformer extends BaseTransformer
{

    public function transform($model)
    {
        if (in_array('profile', $this->field)) {
            $model->profile = 'profile';
        }
        return $model->toArray();
    }

}
